<#-- @ftlvariable name="layout" type="com.fable.sp.core.domain.Layout" -->
<@ui.controlWizard activeStep=0/>
<hr style="margin-top: 0px;"/>
<div class="panel panel-primary">
    <div class="panel-heading">布局信息</div>
    <div class="panel-body">
        <form class="form-horizontal" action="<@spring.url relativeUrl='/sp/layoutControlInfo'/>" method="POST"
              id="layoutForm">
        <#if layout??>
            <input type="hidden" name="id" value="${layout.id}">
        </#if>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="inputName">名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control validate[required]" name="name" id="inputName"
                           value="${layout.name}" placeholder="请输入名称" size="80">
                </div>
            </div>
            <div class="form-group">
                <label for="inputInfo" class="col-sm-2 control-label">描述</label>
                <div class="col-sm-10">
                    <textarea class="form-control" rows="3" placeholder="请添加描述信息" name="info">${layout.info}</textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10 col-sm-offset-2">
                    <button type="submit" class="btn btn-primary">下一步</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    $(function () {
        $("#layoutForm").validationEngine();
    });
</script>